#include "class.h"

Class::Class(QObject *parent)
    : QObject{parent}
{}

int classSubjectGain(Class& x, int y) {
    int end = 0;
    for(int z=0;z<x.allStu.size();z++) {
        end = end + stuSubjectCost(x.allStu[z], y);
    }
    return end;
}
